
<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="cutProcessDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='cutProcessDetail.heading'/>"/>
    <meta name="menu" content="RoleAdminCut"/>
    
</head>

    <fieldset>
    <legend><fmt:message key="cutProcessForm.selectDatas"/></legend>

        <s:hidden name="cutProcess.id" value="%{cutProcess.id}"/>
        <table class="tableGrey" id="SelectedDatas">
            <thead>
                <tr>
                    <th class="hidden"/>
                    <th><fmt:message key="cutDetail.pantDesign.model.datas"/></th>
                    <th><fmt:message key="cutDetail.pantDesign.modelSize.valueSize"/></th>
                    <th><fmt:message key="cutDetail.pantDesign.material.name"/></th>
                    <th class="hidden"/>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td> <s:property value="cutDetail.pantDesign.model.datas" /> </td>
                    <td> <s:property value="cutDetail.pantDesign.modelSize.valueSize" /> </td>
                    <td> <s:property value="cutDetail.pantDesign.material.name" /> </td>
                </tr>
            </tbody>
        </table>
    </fieldset>

    <fieldset>
    <legend><fmt:message key="cutProcessForm.selectEmployee"/></legend>

        <s:form id="cutDetailForm" action="reasignCutDetail" method="post" validate="true">
            <s:hidden key="cutDetail.id" value="%{cutDetail.id}"/>

            <s:select label="%{getText('cutDetail.model')}" name="cutDetail.cutProcess.id"
                      list="cutProcesses" listKey="id" listValue="datas" required="true"
                      headerKey="-1" headerValue="--- Please Select ---" />
            

            <li class="buttonBar bottom">
                <c:if test="${cutDetail.modify }">
                    <s:submit cssClass="button" method="saveReAsignationCutDetail" key="button.save" theme="simple"/>
                </c:if>
                <c:if test="${!cutDetail.modify }">
                    <s:submit cssClass="button" method="saveReAsignationCutDetail" key="button.save" theme="simple" disabled="true"/>
                </c:if>
                <input type="button" style="margin-right: 5px"
                                  onclick="location.href='<c:url value="/addCutDetailToCutProcess.html"/>'"
                                  value="<fmt:message key="button.cancel"/>"/>
            </li>
        </s:form>

    </fieldset>
    